<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <script src="../build/react.development.js"></script>
    <script src="../build/react-dom.development.js"></script>
    <script src="../build/babel.min.js"></script>
  </head>
  <body>
    <div id="example"></div>
    <script type="text/babel">
    //import ReactDOM as RDom from 'react-dom.development.js'
      var names = ["Jack",'Alice', 'Emily', 'Kate'];
      names.unshift("Elan");
     ReactDOM.render(
      <div>
      {
        names.map((name,index)=>{
          return <div>Hello,{index}, {name}!</div>
        })
      }
      </div>,
      document.getElementById('example')
    ); 

      
    </script>
    

    <!-- ReactDOM.render(
      return <div>
        {names.map((i,index)=>{
          <div key={index}>Hello, {i}!</div>
    
        })}
      </div>
    ) -->

  </body>
</html>
